Skip to content

Sprint_4#5

Open
anastasilugovec wants to merge 3 commits intomainfrom
develop
Open

Sprint_4#5
anastasilugovec wants to merge 3 commits intomainfrom
develop

Conversation

@anastasilugovec
Copy link
Owner

No description provided.

tests.py Outdated
@@ -21,4 +24,154 @@ def test_add_new_book_add_two_books(self):
assert len(collector.get_books_rating()) == 2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно исправить:
Данный метод отсутствует в BooksCollector, тест падает. Нужно либо удалить тест полностью, либо исправить вызываемый метод на существующий.

tests.py Outdated
("It", "Ужасы"),
])
def test_set_book_genre_valid(self, name, genre):
self.add_new_book(name)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно исправить здесь и далее:
self вызывает метод класса TestBooksCollector, а здесь необходимо вызывать BooksCollector

tests.py Outdated
("Ужасы", ["Book2"]),
])
def test_get_books_with_specific_genre(self, expected, collector, genre=None):
c = collector

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно исправить:
фикстура collector отсутствует

tests.py Outdated
c.delete_book_from_favorites("It")
assert c.get_list_of_favorites_books() == ["The Hobbit"]

def add_new_book(self, name):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно исправить:
Здесь и далее эти заглушки лишние

Anastasiya Luhavets added 2 commits December 24, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants